package com.goldsign.pay.provider.user.dao;

import com.goldsign.pay.provider.user.vo.AccountRegOrderDO;
import com.goldsign.pay.provider.user.vo.LoginLogDO;
import com.goldsign.pay.provider.user.vo.SmsOrderDO;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;

@Mapper
public interface UserServiceDao
{
	void insertAccountRegOrder(AccountRegOrderDO order) throws SQLException;

	void insertSmsOrder(SmsOrderDO order) throws SQLException;

	AccountRegOrderDO getAccountRegOrderByOrderNo(String orderNo) throws SQLException;

	SmsOrderDO getSmsOrderByBusiWaterNo(SmsOrderDO smsOrderDO) throws SQLException;

	int updateSmsOrderForSucc(String order_no) throws SQLException;

	int updateSmsOrderForFail(String order_no) throws SQLException;

	int updateAccountRegOrder(AccountRegOrderDO order) throws SQLException;


	/**
	 * 获取用户登录信息表的下一个id值
	 * @return
	 * @throws SQLException
	 */
	String getNextLoginLogId() throws SQLException;

	/**
	 * 插入用户的登录信息
	 * @param loginLog
	 * @return
	 * @throws SQLException
	 */
	void insertLoginLog(LoginLogDO loginLog) throws SQLException;

	/**
	 * 更新用户的登录结果
	 * @param loginLogDO
	 * @return
	 * @throws SQLException
	 */
	int updateLoginLog(LoginLogDO loginLogDO) throws SQLException;
}
